<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of KidNote
 *
 * @author virtual
 */
class depricated_KidNote {
    //put your code here
    var $id;
    var $note;
    var $timestamp;
    
    public function __construct(){
        $this->timestamp = new DateTime();
    }
    
    //TOD: currently, current date is used, should be possible to use other date
     public function getDate() {
        return $this->timestamp->format('Y-m-d');
    }
    
     public function getDateKey() {
        return $this->timestamp->format('Ymd');
    }
    
    public function toXml(){
        return "<note datekey=\"".$this->getDateKey()."\"><![CDATA[".$this->note."]]></note>";
    }
}

?>
